from datetime import datetime

from flask import Flask
from flask_sqlalchemy import SQLAlchemy

# 实例化对象
app = Flask(__name__)
# 配置数据库
app.config["SQLALCHEMY_DATABASE_URI"] = "mysql+pymysql://root@127.0.0.1:3306/wx"
app.config["SQLALCHEMY_TRACK_MODIFICATIONS"] = True

# 绑定app至SQLAlchemy
db = SQLAlchemy(app)





if __name__ == "__main__":
	# 创建项目
    db.create_all()

